import React from 'react'
import { Navigate } from 'react-router-dom'

import Login from '../../papes/Login'
import NavPage from '../../papes/NavPape'
import NotFound from '../../papes/NotFound'
import Register from '../../papes/Register'



export const routes = [
    {
        path: '/',
        element: <Navigate to="login" replace />
    },
    {
        path: '/login',
        element: <Login />
    },
    {
        path: '/register',
        element: <Register />
    },
    {
        path: '/nav',
        element: <NavPage />,
    },
    {
        path: '*',
        element: <NotFound />
    },

]